#打折 列表推导式
price=[1200,5330,2988,6200,1998,8888]
sale = [int(x*0.5)for x in price]
print("原价格",price)
print("折扣价格",sale)
#价格高于5000的列表
price=[1200,5330,2988,6200,1998,8888]
sale = [x for x in price if x>5000]
print("原价格",price)
print("折扣价格",sale)

